package com.lk.demo.a.common;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cloud.sleuth.SpanAdjuster;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by zhengbing on 2018/4/20.
 */
@Configuration
public class ZipkinSpanReporterConfig {
    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    @Bean
    SpanAdjuster loggingSpanAdjuster() {
        return span -> {
          //  logger.info("Will report span [{}] to zipkin", span);
            return span;
        };
    }
}
